package com.x.Part1_linearArray;
/**
 * ClassName: LinearArray2
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2023/9/12 15:41
 */
public class LinearArray2 {
    public static void main(String[] args) {
        //数组的内存解析
        int[] a1 = new int[]{1, 2, 3};
        int[] a2 = a1;

        a2[0] = 9;
        System.out.println(a1[0]);//输出为9
        System.out.println(a2[0]);//同样为9


    }
}
